package com.pure.share.wxapi;

import android.content.Intent;

import com.umeng.weixin.callback.WXCallbackActivity;

/**
 * Created by Colin on 2016/11/22.
 */

public class WXEntryActivity extends WXCallbackActivity {

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
    }

//    @Override
//    protected void handleIntent(Intent intent){
//
//        mWxHandler.setAuthListener(new UMAuthListener() {
//            @Override
//            public void onComplete(SHARE_MEDIA platform, int action, Map<String, String> data) {
//                Toast.makeText(getBaseContext(), platform.name() + " is success:", Toast.LENGTH_SHORT).show();
//            }
//
//            @Override
//            public void onError(SHARE_MEDIA platform, int action, Throwable t) {
//                Toast.makeText(getBaseContext(), platform.name() + " a fail:" + t.getMessage(), Toast.LENGTH_SHORT).show();
//            }
//
//            @Override
//            public void onCancel(SHARE_MEDIA platform, int action) {
//                Toast.makeText(getBaseContext(), platform.name() + " is cancel", Toast.LENGTH_SHORT).show();
//            }
//        });
//        super.handleIntent(intent);
//        Toast.makeText(this, "test weixin", Toast.LENGTH_SHORT).show();
//    }


}
